package com.qianyanglong.windows.panel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;

import com.qianyanglong.windows.tree.MainTreeModel;

public class MainPanel extends JPanel{

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 7191315067929650611L;

	public MainPanel() {
		this.setBackground(Color.GRAY);
		this.setLayout(null);
		
		JScrollPane treePanel = new JScrollPane();
		treePanel.setLayout(null);
		treePanel.setLocation(0, 0);
		treePanel.setPreferredSize(new Dimension(200, 800));
		JTree projectTree = new JTree(new MainTreeModel());
		projectTree.setRowHeight(20);
		projectTree.setBounds(0, 0, 200, 800);
		
		treePanel.add(projectTree);
		
		this.add(treePanel);
		
	}
}
